package com.fbee.smartcommunities.service;

import com.fbee.smartcommunities.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fbee.smartcommunities.utils.CustomizeException;

import java.util.List;

/**
 * <p>
 * 权限菜单表 服务类
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-16
 */
public interface PermissionService extends IService<Permission> {

    List<Permission> getlist();

    Boolean update(Long id,String name,String frontUrl,String backUrl,String description,Integer type);

    Boolean check(String filedName,String value,Long id);

    Boolean delete(Long id) throws CustomizeException;

    List<Permission> getResourcesByAdminId(Long id);
}
